<template>
    <div>
        <p ref="op">这是p标签</p>
    </div>
</template>

<script>
export default {
    data () {
        return {


        }
    },
    created(){
        this.$nextTick(()=>{
            console.log(this.$refs.op.innerHTML);
        })
        this.$nextTick().then(()=>{
            console.log(this.$refs.op.innerHTML);
        })
    }
}
</script>
 
<style lang = "less" scoped>
    
</style>